package tests;

import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.TreeMap;

import mapreduce.DataToPass;
import mapreduce.Point;
import mapreduce.PointComparator;

public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		checkFormatter();
	}

	private static void checkOrdering() {
		Point p1 = new Point(0.4, 0.4);
		Point p2 = new Point(0.5, 0.4);
		List<Point> points = new ArrayList<Point>(DataToPass.DEFAULT_ELE_SIZE);
		points.add(p1);
		points.add(p2);
		Collections.sort(points, new PointComparator());
		for (Point point : points) {
			System.out.println(point.getx()+" "+point.gety());
		}
	}

	private static void checkFormatter() {
		DecimalFormat df = new DecimalFormat("#.#######E##");
		System.out.println(df.format(0.5));
	}

}
